public class Main {
        public static void main(String[] args) {
                Rectangle[] rt = new Rectangle[3];
                rt[0] = new Rectangle(2,10);
                rt[1] = new Rectangle(3,10);
                rt[2] = new Rectangle(4,10);
                AreaCalculator ac = new AreaCalculator();
                int temp = ac.Area(rt);
                System.out.println(temp);
        }
}

